package com.leapp.sk.viewdelegate.adapter.classs

import android.widget.ImageView
import android.widget.TextView
import com.example.mvp.delegate.BaseAdapterDelegate
import com.leapp.sk.R
import com.leapp.sk.bean.ChoseClassEntity

/**
 * 顶部选择适配器视图托管类
 * @author  chaohaipeng  on 2018/8/14.
 */
class TopChoseClassAdapterDelegate : BaseAdapterDelegate() {
    override fun getOptionsMenuId(): Int {
        return 0
    }

    override fun initWidget() {
    }

    override fun onDestroy() {
    }

    override fun initLayoutRes(): Int {
        return R.layout.adapter_top_chose_class
    }

    /**
     * 初始化数据
     */
    fun initData(data: ChoseClassEntity){
        val tv_atcc_class = getView<TextView>(R.id.tv_atcc_class)
        if (data.isCheck){
            tv_atcc_class.isSelected=true
        }else{
            tv_atcc_class.isSelected=false
        }

    }


}